<?php


namespace app\api\validate;


use think\Validate;

class UserOperateValidate extends Validate
{

    /**
     * 验证规则
     */
    protected $rule = [
        'invite_code' => ['require'],
    ];

    /**
     * 提示消息
     */
    protected $message = [];

    /**
     * 验证场景
     */
    protected $scene = [
        'bindUserRelation' => ['invite_code'],
    ];

    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'invite_code' => '邀请码',
        ];
        parent::__construct($rules, $message, $field);
    }
}